package com.dmai.aiet.epc.archive.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dmai.aiet.epc.archive.entity.CourseStudyRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 课程学习轨迹表
 *
 * @author
 * @email
 * @date 2024-07-22 19:16:09
 */
@Mapper
public interface CourseStudyRecordsDao {

    int save(CourseStudyRecords courseStudyRecords);

    int update(CourseStudyRecords courseStudyRecords);

    int delete(String id);

    CourseStudyRecords findById(String id);

    List<CourseStudyRecords> findByUserid(@Param("userid") String userid, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<CourseStudyRecords> findCertificateByUserid(String userid);

    List<CourseStudyRecords> pageAll(Page<CourseStudyRecords> page, @Param("params") Map<String, Object> params);

    List<CourseStudyRecords> findAll(Map<String, Object> params);

}
